package com.shenrongrong.service;

import com.github.pagehelper.PageInfo;
import com.shenrongrong.model.Goods;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface GoodsService {
    public PageInfo<Goods> selectAllGoods(Integer pageNum,Integer pageSize,Goods goods);
    public List<Goods> selectTipGoods(Integer userid);
    public int insertGoods(Goods goods);
    public boolean isgoodUnique(String name,String location,Integer goodid);
    public int deleteGoods(Integer goodid);
    public List<Map<String,String>> selectByClassification(Integer userid);
    public int updateGoodsNumber(Integer goodid,Integer number);
    public int updateGoods(Goods goods);
}
